package com.czhlearn.service;

import com.czhlearn.pojo.Category;
import com.czhlearn.pojo.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: big-event
 * @description:
 * @author: czh
 * @create: 2023-12-19 10:33
 **/


public interface CategoryService {
    //添加文章分类
    void add(Category category);

    //获取文章分类列表
    List<Category> get();

    //根据文章id查询详情
    Category getDetail(Integer id);

    //修改文章分类
    void update(Category category);

//    删除文章分类
    void delete(Integer id);
}
